package com.sdgakj.repository;

import com.sdgakj.entity.CommonReview;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CommonReviewDao extends PagingAndSortingRepository<CommonReview, Long>, JpaSpecificationExecutor<CommonReview>{
	
	List<CommonReview> findByTargetIdAndType(Long targetId, Integer type);
	
	public List<Object[]> findReviewByFeedId(Integer type, Long feedId);
}
